/*
* TSV.h
*
*  Created on: Mar 28, 2011
*      Author: hxu
*/

#ifndef TSV_H_
#define TSV_H_
#include "BtreeNode.h"

namespace Cxuh {

	class TSV: public Cxuh::BtreeNode {
		friend class Btree;
	public:
		TSV(int id1, int nodetype);
		TSV(int id1, int nodetype, int x1, int y1, int z1, int z_2); // r and c are unit rc
		virtual ~TSV();
		virtual int getZ2()const;
		virtual int getL() const; // get the length of TSV
		virtual double getD() const;

		static double R_unit;	// r of TSVs, ohm/tier
		static double C_unit;	// c of TSVs, F/tier

	private:
		int z2; // tier of the children
	};


}

#endif /* TSV_H_ */
